<?php /* Smarty version 2.6.26, created on 2014-12-19 01:15:40
         compiled from insert_image.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <link href="img/cart.png" rel="icon">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta author="" content="">
    <title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>

<form name="insert_image" action="insert_image.php" method="POST" enctype="multipart/form-data">
	<h4>Nama Game</h4>
	<select name="idgame">
	<option>- - - - - - - - - -Pilih game- - - - - - - - - -</option>
	<?php $_from = $this->_tpl_vars['game']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['g']):
?>
	<option value="<?php echo $this->_tpl_vars['g']['idgame']; ?>
"><?php echo $this->_tpl_vars['g']['namagame']; ?>
</option>
	<?php endforeach; endif; unset($_from); ?>
	</select>
	<br>
	<br>
<h4>Image yang akan diupload</h4>
<input type="file" name="image" id="fileToUpload">
<div>
	<button type="submit" name="submit">Save</button>
</div>
</form>